<template>
	<view>
		<view style="height:calc(100vh - 120px);overflow-y: scroll;">
			<publist type="1" @nodata="pub" />
		</view>
		<view class="margin">
			<button class="bg-blue" @tap="pub">立即发布</button>
		</view>
	</view>
</template>

<script>
	import publist from '../../components/publist.vue'
	export default {
		data() {
			return {
			};
		},
		onLoad(options) {},
		onShow() {},
		onUnload() {
		},
		components: {
			publist
		},
		methods: {
			pub(){
				uni.navigateTo({
					url: '/pages/pub/recpub?type=1'
				})
			}
		}
	}
</script>